<template>
  <div class="home-content-title-box">
    <div class="title-top-tips">{{ titleTop }}</div>
    <div class="title-name">{{ title }}</div>
    <div class="title-tips">
      {{ titleTips }}
    </div>
  </div>
</template>
<script setup lang="ts">
import { withDefaults, defineProps } from "vue";
interface Props {
  /**头部提示 */
  titleTop: string;
  /**标题 */
  title: string;
  /**标题提示 */
  titleTips?: string;
}

withDefaults(defineProps<Props>(), {
  titleTop: "",
  title: "",
  titleTips: "",
});
</script>

<style lang="less">
@import "@/style/var.less";
@media (min-width: 750px) {
  .home-content-title-box {
    padding-top: 30px;
    text-align: center;
    .title-top-tips {
      color: #3e3e3e;
      font-size: 10px;
      line-height: 14px;
    }
    .title-name {
      margin-top: 10px;
      font-size: 40px;
      line-height: 56px;
      color: #5486ea;
      position: relative;
    }
    .title-name::after {
      content: "";
      position: absolute;
      width: 33px;
      height: 3px;
      background-color: #5486ea;
      border-radius: 2px;
      left: 50%;
      transform: translateX(-50%);
      bottom: -8px;
    }
    .title-tips {
      margin-top: 25px;
      color: #9a9a9a;
      font-size: 10px;
      line-height: 17px;
    }
  }
}
@media (max-width: 750px) {
  .home-content-title-box {
    text-align: center;
    padding-top: 23px;
    .title-top-tips {
      color: #3e3e3e;
      font-size: 7px;
      line-height: 9px;
    }
    .title-name {
      margin-top: 2px;
      font-size: 20px;
      line-height: 28px;
      color: #5486ea;
      position: relative;
    }
    .title-name::after {
      content: "";
      position: absolute;
      width: 23px;
      height: 2px;
      background-color: #5486ea;
      border-radius: 2px;
      left: 50%;
      transform: translateX(-50%);
      bottom: -8px;
    }
    .title-tips {
      display: none;
    }
  }
}
</style>
